package com.byb.server.service;

import com.byb.server.service.dto.Wc.WcITDTO;
import com.byb.server.service.dto.WcInsuranceCategoryDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Service Interface for managing WcInsuranceCategory.
 */
public interface WcInsuranceCategoryService {

    /**
     * Save a wcInsuranceCategory.
     *
     * @param wcInsuranceCategoryDTO the entity to save
     * @return the persisted entity
     */
    WcInsuranceCategoryDTO save(WcInsuranceCategoryDTO wcInsuranceCategoryDTO);

    /**
     *  Get all the wcInsuranceCategories.
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<WcInsuranceCategoryDTO> findAll(Pageable pageable);

    /**
     *  Get the "id" wcInsuranceCategory.
     *
     *  @param id the id of the entity
     *  @return the entity
     */
    WcInsuranceCategoryDTO findOne(Long id);

    /**
     *  Delete the "id" wcInsuranceCategory.
     *
     *  @param id the id of the entity
     */
    void delete(Long id);

    /**
     * Search for the wcInsuranceCategory corresponding to the query.
     *
     *  @param query the query of the search
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<WcInsuranceCategoryDTO> search(String query, Pageable pageable);

    /**
     *  Get all the wcInsuranceCategories for wc.
     *
     *  @return the list of entities
     */
    List<WcITDTO> findAllForWc();
}
